<div id="content">
    <div id="main">

        <?php
            $elementMessages = $this->form->getMessages();
          
            if (sizeof($elementMessages) > 0)
            {
                echo '<div class=error>';
                foreach ($elementMessages as $element)
                {
                    foreach ($element as $message)
                    {

                        echo $message.'<br >';
                    }
                }
                echo '</div>';
            }

            $elementMessages = $this->error;

            if (sizeof($elementMessages) > 0)
            {
                echo '<div class=error>';
                foreach ($elementMessages as $element)
                {
                    foreach ($element as $message)
                    {

                        echo $message.'<br >';
                    }
                }
                echo '</div>';
            }

            if(isset($this->success)){
                echo '<div class=success>';
                echo $this->success;
                echo '</div>';
            }
        ?>
  
    <h2><a href="#"><?=$this->breadcump1?></a> &raquo; <a href="#" class="active"><?=$this->breadcump2?></a></h2>

    <?=$this->form;?>

    <div class="clear"></div>
    </div>

</div>

<div id="sidebar">
        <h2>Navegação</h2>
        <ul>
            <li><a href="<? echo $this->url(array('controller' => 'Usuario', 'action' => 'index'),'',true)?>">Histórico</a></li>
            <li><a href="<? echo $this->url(array('controller' => 'Usuario', 'action' => 'novousuario'),'',true)?>">Novo Usuário</a></li>
            <li><a href="<? echo $this->url(array('controller' => 'Usuario', 'action' => 'lista'),'',true)?>">Lista de Usuários</a></li>
            <li><a href="<? echo $this->url(array('controller' => 'Usuario', 'action' => 'meusdados'),'',true)?>">Meus Dados</a></li>
        </ul>
</div>